package router

import (
	"gin-mi/handler/service"

	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("register", service.Register) //用户注册
	r.POST("login", service.Login)       //用户登录
	r.GET("chat", service.Chat)          //聊天
	r.GET("black", service.Black)        //黑名单
	r.GET("friend", service.Friend)      //好友
	r.POST("sms", service.SendSms)       //短信发送
	r.POST("")
	return r
}
